package com.swanclouds.redfish.chassis.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.util.Map;

public class Controllers {

    /**指定网络适配器的固件版本**/
    @JsonProperty("FirmwarePackageVersion")
    private String firmwarePackageVersion;

    /**描述适配器控制器功能的信息**/
    @JsonProperty("ControllerCapabilities")
    private Map<String, String> controllerCapabilities;

    /**指定网络适配器的固件版本**/
    @JsonProperty("Link")
    private Link link;

    public String getFirmwarePackageVersion() {
        return firmwarePackageVersion;
    }

    public Map<String, String> getControllerCapabilities() {
        return controllerCapabilities;
    }

    public Link getLink() {
        return link;
    }

    @Override
    public String toString() {
        ObjectMapper objectMapper = new ObjectMapper();
        try {
            return objectMapper.writeValueAsString(this);
        } catch (JsonProcessingException e) {
        }
        return "Controllers{" +
                "FirmwarePackageVersion='" + firmwarePackageVersion + '\'' +
                "ControllerCapabilities='" + controllerCapabilities + '\'' +
                "Link='" + link + '\'' +
                '}';
    }

}
